@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden; 
    }

    .title-container {
        font-size: 2.5rem;
    }

    .logo {
        position: relative;
        width: 10rem; 
        display: block;
        
    }

    .pdf-gallery {
        grid-template-columns: repeat(3, 1fr); 
        margin-top: 2rem;
        gap: 2rem;
    }

    .pdf-item {
        height: 100%; 
        width: 100%; 
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden; 
    }

    .title-container {
        font-size: 2rem;
    }


    .logo {
        width: 10rem;
        left: 2rem;
    }

    
    .gallery {
        grid-template-columns: repeat(2, 1fr); 
        margin-top: 2rem;
        gap: 2rem;
    }

    .gallery-item {
        height: 90%; 
        width: 100%; 
        margin-top: 3rem;
    }


    .modal-content {
        max-width: 95%; 
        max-height: 95%;
    }

    .close {
        top: 10px; 
        right: 15px;
        font-size: 25px;
    }

    .nav-button {
        font-size: 25px;
    }

    #prev {
        left: 10px;
    }

    #next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 8rem;
        left: 1%;
    }

    .title-container {
        font-size: 2.5rem;
        text-align: center;
    }

    .main-info, .main-info-2 {
        font-size: 1.2rem;
        padding: 20px;
    }

    .gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 900px;
        margin: 2rem 0;
    
    }
    
    .gallery-item {
        width: 130px;
        height: 150px;
        border-radius: 15px;
        cursor: pointer;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1s ease-out, transform 1s ease-out;
        padding: 5px;
    }
}